package Demo1;

public class AFatherInThePackage {
    protected int a = 1;
    private int b = 2;
    int c = 3;
    public int d = 4;

    String name = "一个在包中的父类";
}
class Son01 extends AFatherInThePackage{
    public Son01() {
        super();
    }
}
class NormalClass{
    public static void main(String[] args) {
        AFatherInThePackage aFatherInThePackage = new AFatherInThePackage();
        System.out.println(aFatherInThePackage.a);
//        System.out.println(aFatherInThePackage.b);
        System.out.println(aFatherInThePackage.c);
        System.out.println(aFatherInThePackage.d);
    }
}


class workdesk{
    public static void main(String[] args) {
        Son01 son01 = new Son01();
        System.out.println(son01.a);
//        System.out.println(son01.b);
        System.out.println(son01.c);
        System.out.println(son01.d);
    }
}
